package com.winhxd.b2c.customer.service;

import com.winhxd.b2c.common.domain.customer.bo.CustomerRevenueBO;
import com.winhxd.b2c.common.domain.customer.model.CustomerIntegralDetail;
import com.winhxd.b2c.common.domain.customer.model.CustomerRevenueDetail;

import java.util.List;

/**
 * @author caiyulong
 */
public interface CustomerWalletService {

    /**
     * 查询用户的收益信息（总收益，积分，下线收益）
     * @param customerId
     * @param level
     * @return
     */
    CustomerRevenueBO getCustomerRevenueByCustomerId(Long customerId, Integer level);

    void modifyCustomerWallet(List<CustomerIntegralDetail> customerIntegralDetails, List<CustomerRevenueDetail> customerRevenueDetails, Long firstCustomerId);
}
